<template>
  <div class="noticeDetails_wrap">
    <headTop :headClass="'white_header'">
      Details of the notices
    </headTop>
    <div class="scroll_wrap">
      <div class="kong"></div>
      <div class="_wrap">
        <div class="top">
            <div class="title">{{newsDetail.title}}</div>
            <!-- <span class="create_time">{{newsDetail.created_at}}</span> -->
        </div>
        <div class="content" v-html="newsDetail.conten"></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'noticeDetails',
  data () {
    return {
      id: Number(this.$route.query.id) || 0,
      newsDetail: {}
    };
  },
  methods: {
    getInfo () {
      this.axios.get('index/notice/active_data', {
        params: {
          ids: this.id
        }
      }).then(({data}) => {
        if (data.status === 200) {
          this.newsDetail = data.data;
        } else {
          this.Toast(data.message);
        }
      });
    }
  },
  mounted () {
    this.getInfo();
  }
};
</script>

<style lang="scss" scoped>
  @import '../style/public.scss';
  .noticeDetails_wrap{
    background: #fff;
    padding-top: 90px;
    height: 100%;
    .scroll_wrap {
      height: 100%;
      overflow-y: scroll;
      .kong {
        width: 100%;
        height: 20px;
        background: #f4f5f7;
      }
      ._wrap {
        padding: 0 30px;
        .top {
          min-height: 112px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          border-bottom: 1Px solid #e5e5e5;
          .title {
            max-width: 60%;
            font-size: 30px;
            color: #1f1f1f;
            line-height: 45px;
          }
          .create_time {
            font-size: 24px;
            color: #999999;
          }
        }
        .content {
          padding-top: 40px;
          font-size: 26px;
          color: #666666;
          line-height: 45px;
        }
      }
    }
  }
</style>
